package com.execdemo.demoorderservice.feign.client;


import com.execdemo.demoorderservice.domain.Store;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "demo-master-service")
public interface MasterFeignClient {

    @GetMapping("/master/getStoreByCode/{code}")
    Store getStore(@PathVariable("code") String code);
}
